package com.sixmac.dao;

import com.sixmac.entity.Info;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * Created by Administrator on 2016/5/30 0030 下午 1:52.
 */
public interface InfoDao extends JpaRepository<Info, Integer> {

    @Query("select a from Info a where a.type = ?1")
    public Page<Info> pageByIndex(Integer pageIndex, Pageable pageable);
}